package com.itheima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.admin.EmployeeMapper;
import com.itheima.domian.Employees;
import com.itheima.service.admin.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 12441
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employees> implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public Employees getEmpByCount(String account) {

        return employeeMapper.getEmpByCount(account);
    }

    @Override
    public Integer addUser(Employees employees) {
        return employeeMapper.addUser( employees);
    }
}
